package com.codeZ.AdapterPattern;

import lombok.Data;

/**
 * SD卡具体实现类
 *
 * @author codeZhang
 * @Date 2024/8/14 13:59
 */
@Data
public class SDCardImpl implements SDCard{

    private String data;

    @Override
    public void write(String data) {
        System.out.println("SDCardImpl write data:" + data);
        setData(data);
    }

    @Override
    public String read() {
        System.out.println("SDCardImpl read data:" + getData());
        return getData();
    }

}
